/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseUrl: 域名地址
 * routerMode: 路由模式
 * imgBaseUrl: 图片所在域名地址
 *
 */
let baseUrl;
let apiUrl;
let routerMode;


if (process.env.NODE_ENV == 'development') {
  baseUrl = 'http://pension.xikang.com:9999';
  //apiUrl = 'http://10.32.68.45:8080';
  //apiUrl = 'http://10.32.68.142:8080';
  apiUrl = 'http://pension.xikang.com:9999';
  routerMode = 'hash'
}else{
  baseUrl = 'http://pension.xikang.com:9999/web';
  apiUrl = 'http://pension.xikang.com:9999';
  // baseUrl = 'http://101.95.103.182:30215/web';
  // apiUrl = 'http://101.95.103.182:30215';
  routerMode = 'hash'
}
if(routerMode == 'hash') {
  baseUrl += '/#'
}

export {baseUrl, routerMode, apiUrl}
